package com.stylefeng.guns.modular.bank.service;

import com.baomidou.mybatisplus.service.IService;
import com.stylefeng.guns.core.exception.GunsException;
import com.stylefeng.guns.modular.system.model.Bank;

import java.util.Date;
import java.util.List;
import java.util.Map;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author stylefeng123
 * @since 2018-07-02
 */
public interface IBankService extends IService<Bank> {

    /**
     * 批量添加银行
     *
     * @param list
     * @throws GunsException
     */
    void adds(List<Bank> list) throws GunsException;

    /**
     * 根据时间统计银行冻结金额和解冻金额
     * @param platform
     * @param begin
     * @param endDate
     * @return
     * @throws GunsException
     */
    Double thawMoney(String platform, Date begin, Date endDate) throws GunsException;

    /**
     * 根据时间统计银行冻结金额和解冻金额
     * @param platform
     * @param begin
     * @param endDate
     * @return
     * @throws GunsException
     */
    Double freezeMoney(String platform, Date begin, Date endDate) throws GunsException;

    /**
     *查询某天的银行余额
     * @param revtime
     * @author laoyu
     * @date 2018-07-26
     */
    Double searchOneDayBalance(String platform, Date revtime);


    /**
     * 描述:导出银行余额表
     * 创建人: xiang
     * 日期: 2018/7/31
     * 时间: 14:09
     */
    void exportBank( String revtime,Map<String, Object> map);
}
